package com.wu;

import com.wu.pojo.po.paperPo.Question;
import com.wu.service.ExcelService;
import com.wu.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.*;

//
//import com.wu.utils.RedisUtil;
//import orgPo.junit.Test;
//import orgPo.junit.runner.RunWith;
//import orgPo.springframework.beans.factory.annotation.Autowired;
//import orgPo.springframework.boot.test.context.SpringBootTest;
//import orgPo.springframework.test.context.junit4.SpringRunner;
//
//@RunWith(SpringRunner.class)
//@SpringBootTest
public class demo {

    @Autowired
    private QuestionService questionService;

    @Autowired
    private ExcelService excelService;
//    @Autowired
//    RedisUtil redisUtil;
//    @Test
//    public boolean redisTest() {
//        boolean isSet = redisUtil.set("test", "ok", 50000);
//        return isSet;
//    }
public static void main(String[] args) {
    demo demo = new demo();
    System.out.println(demo.substring());

}
public List<Question> get() {
    return questionService.getQuestionsByPaperIdAndQuestionType("befb576b085848d495ec37927c80d37c", 1);
}

public String substring() {
   String ss = "1";
   String ss2 = ss == "1" ? "单选题": ss == "2" ? "多选题" : "简答题";
    return ss2;
}


}

